/*
 * @Author: your name
 * @Date: 2022-04-18 17:09:02
 * @LastEditTime: 2022-04-18 17:47:15
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \Company\shop\src\api\goods copy.js
 */
 
import request from '/@/utils/request'
/**
 * 客户管理
 **/
// 获取列表
export function partnerList(data) {
  return request({
    url: '/partner/getPartnerList',
    method: 'post',
    data
  })
}
// 编辑
export function updatePartner(data) {
  return request({
    url: '/partner/updatePartner',
    method: 'post',
    data
  })
}
 
// 删除
export function delPartner(data) {
  return request({
    url: '/partner/delPartner',
    method: 'post',
    data
  })
}
//  专辑分类
export function albumList(data) {
  return request({
    url: '/goods/getAlbumList',
    method: 'post',
    data
  })
}
// 新增专辑
export function addPartner(data) {
  return request({
    url: '/partner/addPartner',
    method: 'post',
    data
  })
}
export function partnerByGet(id) {
  return request({
    url: `/partner/updatePartner/${id}` ,
    method: 'get',
   
  })
}
//修改专辑
export function updateAlbum(data) {
  return request({
    url: '/goods/updateAlbum',
    method: 'post',
    data
  })
}
 
// 删除专辑
export function delAlbum(data) {
  return request({
    url: '/goods/delAlbum',
    method: 'post',
    data
  })
}
// 获取商品列表
export function getGoodsList(data) {
  return request({
    url: '/goods/getGoodsList',
    method: 'post',
    data
  })
}
//删除商品
export function delGoods(data) {
  return request({
    url: '/goods/delGoods',
    method: 'post',
    data
  })
}
// 添加商品
export function addGoods(data) {
  return request({
    url: '/goods/addGoods',
    method: 'post',
    data
  })
}
export function addGoodsByGet(id) {
  return request({
    url: `/goods/getGoodsList/${id}`,
    method: 'get' 
  })
}
//  修改商品状态
export function updateGoodsStatus(data) {
  return request({
    url: `/goods/updateGoodsStatus`,
    method: 'post',
    data
  })
}
//商品详情
export function updateGoods(data) {
  return request({
    url: `/goods/updateGoods`,
    method: 'post',
    data
  })
}
export function updateGoods_get(id) {
  return request({
    url: `/goods/updateGoods/${id}`,
    method: 'get'
  })
}
 
 
//  获取分类列表
export function cateList(data) {
  return request({
    url: '/goods/getCateList',
    method: 'post',
    data
  })
}
// 新增分类
export function addCate(data) {
  return request({
    url: '/goods/addCate',
    method: 'post',
    data
  })
}
// 编辑分类
export function updateCate(data) {
  return request({
    url: '/goods/updateCate',
    method: 'post',
    data
  })
}
 
//删除分类
export function delCate(data) {
  return request({
    url: '/goods/delCate',
    method: 'post',
    data
  })
}
 